package com.telecom.cms.service;

import java.util.List;
import com.telecom.cms.dao.CampSegDAO;
import com.telecom.cms.dto.CampSeg;


public class CampSegMgr {
   
	public void save(CampSeg campseg){
		(new CampSegDAO()).insert(campseg);
	}
	
	public void  delete(CampSeg campseg){
		(new CampSegDAO()).delete(campseg);
	}
	public void  deletebyid(String campid,String areaid){
		(new CampSegDAO()).deleteById(campid,areaid);
	}
	
	public List findall(){
		List result=(new CampSegDAO()).findAll();
		return result;
	}
	
	public CampSeg findbyid(String campsegid){
		CampSeg result=(new CampSegDAO()).findById(campsegid);
		return result;
	}
	
	public List findall(String campid){
		List result=(new CampSegDAO()).findAll(campid);
		return result;
	}
	
	public List findall(String campid,String areaid){
		List result=(new CampSegDAO()).findAll(campid,areaid);
		return result;
	}
	
	
}
